<?php
/*
Template Name: comparison Form
Auther: Naseer Ahnad
Created: 10-03-2012
*/
?>
<?php 
get_header(); 

$args=array("parent" => 9, "hide_empty"	=> 0);
$venueTypes = get_categories($args); 

///// get all countries
$args=array("parent" => 3, "hide_empty"	=> 0);
$countries = get_categories($args); 
//$venueArea = $wpdb -> get_results('Select DISTINCT(Area) from comparison', ARRAY_A);

?>

  <div class="main-content-inner global-width">
    
    <section class="contents full-width">
        <h1>Venue Comparision Form</h1>
        <p><strong>Please Note the comparision chart is to provide a guide price only, 
        upgrades and discounts may be available, if interested please contact the venues!</strong></p>
        <form action="http://armchaircorporateguru.co.uk/comparison-result/" method="post">
          <table>
            <tr>
              <td>Venue Type:</td>
              <td><select name="venue">
                  <option>Select Type</option>
                  <?php foreach($venueTypes as $type):?>
                  <option value="<?php echo $type->cat_ID ?>">
                  <?php echo $type->cat_name ?>
                  </option>
                  <?php endforeach?>
                </select></td>
            </tr>
            <tr>
              <td>Area:</td>
              <td><select name="area">
                  <option>Select Area</option>
                  <?php foreach($countries as $country):?>
                  <optgroup label="<?php echo $country->cat_name ?>">
                  	<?php	
						$args=array("parent" =>  $country->cat_ID, "hide_empty"	=> 0);
						$cities = get_categories($args); 
						foreach($cities as $city):
					 ?>
                          <option value="<?php echo $city->cat_ID ?>">
                          <?php echo $city->cat_name ?>
                          </option>
                     <?php endforeach; ?>
                  </optgroup>
                  <?php endforeach?>
                </select></td>
            </tr>
          </table><br />

          <table width="100%" border="0" class="nm_tables">
            <tr>
              <td  valign="top"><h2 align="center">Delegate Charges</h2>
                <table>
                  <tr>
                    <td>Day Delegate Rate:</td>
                    <td>Guests: 
                    	<select name="dayDelegate">
	                      	<option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                                  <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
                    </td>
                  </tr>
                   <tr><td>&nbsp;</td></tr>
                  <tr>
                    <td>24Hr Delegate Rate:</td>
                    <td>
                   	  Guests: <select name="24HrDelegate">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
                    </td>
                  </tr>
                  <tr><td>&nbsp;</td></tr>
                  <tr>
                    <td>Outside Area:</td>
                    <td>Required: 
                   	  <select name="outsideArea">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select>
                    </td>
                  </tr>
              </table></td>
              
              <td valign="top"><h2 align="center">Accommodation Charges</h2>
                <table align="center">
                  <tr>
                    <td>Room Only:</td>
                    <td>
                      <span>Single</span>
                   	  <select name="roomSingle">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select><br />
                        <span>Double/Twin</span>
                   	  <select name="roomDouble">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
                    </td>
                  </tr>
                   <tr><td>&nbsp;</td></tr>
                  <tr>
                    <td>Bed & Breakfast:</td>
                    <td>
                        <span>Single</span>
                   	  <select name="breakfastSingle">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select><br />
                        <span>Double/Twin</span>
                   	  <select name="breakfastDouble">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
                    </td>
                  </tr>
                   <tr><td>&nbsp;</td></tr>
                  <tr>
                    <td>Dinner Bed & Breakfast:</td>
                    <td>                        
                      <span>Single</span>
                      <select name="dinnerSingle">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select><br />
                      <span>Double/Twin</span>
                   	  <select name="dinnerDouble">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
                    </td>
                  </tr>
                </table></td>
              <td valign="top"><h2 align="center">Additional Requirements/Charges</h2>
                <table align="center">
                  <tr>
                    <td>Flip Charts:</td>
                    <td>Qunatity: <select name="flipCharts">
						  <option value="0">Not Required</option>
						  <?php for($i=1;$i<=5; $i++):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
					</td>
                  </tr>
			 	  <tr><td>&nbsp;</td></tr>
                  <tr>
                    <td>LCD Hire:</td>
                    <td>Qunatity: <select name="lcdHire">
	                      <option value="0">Not Required</option>
						  <?php for($i=1;$i<=5; $i++):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
					</td>
                  </tr>
				   <tr><td>&nbsp;</td></tr>
                  <tr>
                    <td>WiFi:</td>
                    <td>Required: <select name="wifi">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select>
					</td>
                  </tr>
				   <tr><td>&nbsp;</td></tr>
                  <tr>
                    <td>Conference Call Facilities:</td>
                    <td>Required: <select name="conferenceCall">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select>
					</td>
                  </tr>
				   <tr><td>&nbsp;</td></tr>
                  <tr>
                    <td>Tea / Coffee:</td>
                    <td>Guests: <select name="teaCoffee">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
					</td>
                  </tr>
                  <tr><td>&nbsp;</td></tr>
                  <tr>
                    <td>Bottled Water:</td>
                    <td>Guests: <select name="bottledWater">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
					</td>
                  </tr>
                  <tr><td>&nbsp;</td></tr>                  
                  <tr>
                    <td>2 Course Meal:</td>
                    <td>Guests: <select name="courceMeal2">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
					</td>
                  </tr>
                  <tr><td>&nbsp;</td></tr>                  
                  <tr>
                    <td>3 Course Meal:</td>
                    <td>Guests: <select name="courseMeal3">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
					</td>
                  </tr>
			      <tr><td>&nbsp;</td></tr>                  
                  <tr>
                    <td>Hot Buffet:</td>
                    <td>Guests: <select name="hotBuffet">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
					</td>
                  </tr>
				  <tr><td>&nbsp;</td></tr>                  
                  <tr>
                    <td>Cold Buffet:</td>
                    <td>Guests: <select name="coldBuffet">
	                      <option value="0">Not Required</option>
						  <?php for($i=25;$i<=300; $i+=25):?>
                          <option value="<?php echo $i ?>"><?php echo $i ?></option>
                          <?php endfor; ?>
                      </select>
					</td>
                  </tr>
                </table></td>
            </tr>
            <tr>
            	<td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="3" align="center"><input type="submit" value="Compare"  class="search-button" /></td>
            </tr>
          </table>
        </form>
        <div class="clear"></div>
    </section>
    <div class="clearfix"></div>
  </div>

<!-- Main Content Ends -->
</section>
<?php get_footer(); ?>